Network storage target boot and network connectivity through a common network device

ABSTRACT

The present disclosure includes systems and techniques relating to booting to a network storage target. In general, in one implementation, a bus-to-network device driver is loaded during a machine boot, where the bus-to-network device driver is capable of sending machine bus commands over a network, providing access to the network for a network device driver, and distinguishing between received responses to the machine bus commands and other network traffic corresponding to the network device driver. Loading of the bus-to-network device driver can occur in response to an operating system load of bus drivers. For example, the bus-to-network device driver can be an iSCSI driver, and the operating system load of bus drivers can be the operating system load of SCSI drivers.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional of prior U.S. patent application Ser.No. 13/473,288, filed May 16, 2012, now U.S. Pat. No. 8,341,392, whichis a divisional of prior U.S. patent application Ser. No. 12/418,340filed Apr. 3, 2009, now U.S. Pat. No. 8,190,870, which is a divisionalof prior U.S. patent application Ser. No. 10/822,168 filed Apr. 8, 2004,now U.S. Pat. No. 7,533,190.

BACKGROUND

In current data processing machines, network connectivity is typicallyhandled by an operating system after disk access is established. Anetwork device driver is typically loaded from information stored on aboot disk during a machine boot, and the loaded network device driver isused by the operating system to control a network interface card afterthe booting process is completed. In many modern operating systems,computers also go through a process of switching from a mode whereexecutables have direct access to hardware to a mode where the operatingsystem controls the hardware, and drivers interact through a structuredetermined by the operating system.

DRAWING DESCRIPTIONS

FIG. 1 is a block diagram illustrating a system that provides networkstorage target boot and network connectivity through a common networkdevice.

FIG. 2 is a block diagram illustrating an example implementation of thesystem from FIG. 1 in the context of iSCSI (Small Computer SystemInterface over TCP/IP (Transmission Control Protocol/InternetProtocol)).

FIG. 3 is a block diagram illustrating another example implementation ofthe system from FIG. 1 in the context of iSCSI.

FIG. 4 is a flow chart illustrating operations performed by abus-to-network device driver.

FIG. 5 is a flow chart illustrating various approaches to using abus-to-network device driver in a data processing machine, where variousoperations may be used separately or in combination.

FIG. 6 is a block diagram illustrating another system that providesnetwork storage target boot and network connectivity through a commonnetwork device.

FIG. 7 is a block diagram illustrating an example dynamic hostconfiguration protocol server implementation.

Details of one or more embodiments are set forth in the accompanyingdrawings, where like reference numerals indicate like elements, and thedescription below. Other features and advantages may be apparent fromthe description and drawings, and from the claims.

DETAILED DESCRIPTION

FIG. 1 is a block diagram illustrating a system that provides networkstorage target boot and network connectivity through a common networkdevice. A data processing machine 100 includes a network device 110 thatconnects the machine 100 to a network 160. The machine 100 may be apersonal computer, a server, a mobile consumer electronic device, orother data processing machine. The network 160 may be a local areanetwork, metropolitan area network, wide area network, or other type ofmachine network. The network 160 may be a wired or wireless machinenetwork and may use a connectionless packet-switched protocol, such asInternet Protocol (IP), and/or other network protocols. The networkdevice 110 represents a hardware component of the machine 100 and may bea network interface card (NIC) or an integrated network device (e.g., anetwork adapter built into a main circuit board, such as a motherboard,of the machine 100).

Drivers 120 control the network device 110, providing a conduit throughwhich an operating system (OS) and one or more software applications 150in an application layer of the machine 100 may communicate with thenetwork 160. The drivers 120 allow data storage operations 130 to beperformed over the network 160 using the network device 110. Forexample, the drivers 120 may include an iSCSI initiator that allows SCSIcommands to interact with a storage target 170 over the network 160.

At least one of the drivers 120 may support booting to the storagetarget 170 over the network 160, in which case the storage target 170represents a remote boot device. A boot device is a device that isinitialized before loading of an operating system. The remote bootdevice 170 is remote in that the boot device 170 is accessed over anetwork and may be located in physical space either close to or far awayfrom the machine 100. For example, the remote boot device 170 may beconnected to the machine 100 through a local area network 160 (e.g., agigabit Ethernet) and may be located in the same building, rack, orcabinet as the machine 100.

Additionally, the drivers 120 allow network traffic operations 140 to beperformed over the network 160 using the network device 110. At leastone of the drivers 120 may present itself as a network device driver tothe operating system and support general purpose network traffic. Thus,the operating system may view and interact with one of the drivers 120as though it were a conventional network device driver loaded after busdrivers and storage drivers in the machine boot process. The networktraffic supported may include multiple different networking protocols,such as TCP/IP, ODI (Open Data-link Interface), PXE (Pre-Boot ExecutionEnvironment), and various other standardized and/or company/operatingsystem based networking protocols, depending upon implementation. Ingeneral, the drivers 120 allow the machine 100 to communicate with oneor more information sources 180 using multiple networking protocols.

Although the device drivers of the machine 100 appear in FIG. 1 to be ina layer separate from the operating system and the hardware, it shouldbe understood that the device drivers may operate in different contextswithin the machine 100 depending upon implementation and the state ofoperation, from power off, through the boot sequence, up until anoperational mode is reached, where the operating system is fully loadedand in control of the machine 100. Moreover, various driver functionsdescribed herein can be implemented in hardware, firmware and/orsoftware.

As described above, the drivers 120 may support booting to a remote bootdevice and support general purpose network traffic, while at least oneof the drivers 120 presents itself as a network device driver to theoperating system. Booting to the remote boot device may be done usingiSCSI, where SCSI commands are encapsulated in the TCP/IP protocol. AniSCSI boot typically involves booting through one or more (usually two)iSCSI initiators to an iSCSI target. An iSCSI initiator is therequestor/recipient of data from an iSCSI target, and the iSCSI targettypically either has, or translates disk accesses and serves initiators.In the case of two iSCSI initiators, the first initiator may reside infirmware or be delivered through PXE. The second initiator may interfacewith the operating system to which the machine 100 is booting.

An iSCSI boot generally needs a functional network connection before theboot device can be established, which is out of order for many operatingsystems. Moreover, many operating systems are not protected against theuser disabling the network connection during use, as this is notgenerally a fatal error under normal operation. However, if the machineis in an iSCSI boot configuration, these normal unprotected operationsmay lead to system halts and crashes in conventional data processingmachines running conventional operating systems.

In the machine 100, these problems may be overcome by using a devicedriver architecture that employs a virtual network device driver. Thedevice driver architecture may provide a structure for a driverinterface that allows the network device 110 to be dual purposed fornetwork storage target boot (e.g., iSCSI boot) and general purposenetwork connectivity (e.g., general purpose network traffic fromsoftware applications 150). Moreover, the device driver architecture mayinterface with the operating system (OS) so as to provide seamless OSintegration. The driver structure may integrate with most currentoperating systems without requiring any changes from the OS vendors, asdescribed further below.

The device driver architecture allows the network device 110 to accessthe network 160 and connect to the storage target 170 (e.g., a networkdisk drive) before the operating system loads its own network stack.This may be done when the operating system loads bus drivers (e.g., SCSIdrivers). For example, many current operating systems allow the additionof third party SCSI drivers at a SCSI driver insertion point, and thedrivers 120 can hook in at this point in the boot up sequence,potentially making the installation process very easy.

In addition, one of the drivers 120 may be a virtual driver provided tothe operating system of the machine 100, allowing the operating systemto use the network device 110 for network access via the virtual driver.The virtual driver does not communicate directly to hardware, but rathercommunicates to an interface that is part of a remaining device driver120. This allows the operating system to manage the network interfaceusing for instance unprotected operations that would otherwise crash themachine 100. The network interface functions after disk access isestablished, and the network interface may be enabled and disabledwithout harming the machine's ability to communicate with a storagedrive.

FIG. 2 is a block diagram illustrating an example implementation of thesystem from FIG. 1 in the context of iSCSI. An operating system 200 hasbeen fully loaded, and an intermediary driver 210, e.g., an iSCSI busdevice driver, includes a hardware interface that communicates with anetwork interface card (NIC) 220. The NIC 220 may include integrationcircuitry 228, which may include an ASIC (Application SpecificIntegrated Circuit). The NIC 220 may include a processor 222, anon-volatile memory 224 (e.g., an option ROM), and a network interface226.

An iSCSI driver 230 may contain its own TCP/IP stack and iSCSIencapsulation component, enabling the iSCSI driver 230 to be selfsufficient for network connectivity, supporting SCSI operations 240 overa network. The iSCSI driver 230 appears as a SCSI driver to theoperating system 200 and generates iSCSI traffic 235 in response to theSCSI operations 240. Installation of the iSCSI driver 230 during amachine boot can cause installation of the iSCSI bus device driver 210.In many current operating systems, bus drivers are loaded even beforedisk drivers.

A virtual network driver 250 also communicates with the iSCSI bus devicedriver 210. A network stack, such as an OS TCP/IP stack 260, may bedetermined by the operating system 200. The virtual network driver 250may include a hardware interface pass through or an OS integration layerthat assists in making the virtual network driver 250 appear as aconventional network device driver to the operating system 200. In someimplementations, the operating system 200 need not be changed toaccommodate the driver architecture. The driver architecture may be usedwith many current operating systems with essentially no changes to theoperating systems (e.g., no OS modifications other than standard networkand SCSI driver installs; the existing shut down routines need not bechanged), thus providing seamless operating system integration.

Because the machine does not rely on the virtual network driver 250 fordisk access, the virtual network driver 250 may be loaded and unloadedas the user or operating system determines. Network traffic 270 passesthrough the virtual network driver 250, providing network traffic 255 tothe iSCSI bus device driver 210. The NIC 220 may be operationallydisabled from within the operating system 200, cutting off the networktraffic 255, and yet the NIC 220 still remains operational for iSCSItraffic 235.

In this driver architecture, the device driver that controls thehardware interface (e.g., the iSCSI bus device driver 210 in FIG. 2)distinguishes between received responses to machine bus commands andother network traffic. The hardware interface driver may determine thedifference between packets destined for an iSCSI stack and packetsdestined for a general network stack. This can be accomplished byassigning the iSCSI driver 230 and the virtual network driver 250 theirown separate hardware addresses (HA #1 and HA #2). For example, the twodrivers 230, 250 may each be assigned their own MAC (Media AccessControl) address.

By assigning two different hardware addresses, traffic can be easilyrouted as appropriate. Additionally, the NIC 220 may be assigned two IPaddresses, one for each hardware address. This allows the iSCSI busdevice driver 210 to route traffic to and from the appropriate networkstack, and may provide additional advantages as described further belowin connection with FIG. 7. Alternatively, the hardware interfacecontrolling driver may distinguish between received responses based onport number; a fixed number of predefined port numbers may be assignedto a defined set of storage targets, and these predefined port numbersmay be used to identify packets corresponding to machine bus commands.

FIG. 3 is a block diagram illustrating another example implementation ofthe system from FIG. 1 in the context of iSCSI. In this implementation,the iSCSI driver 230 and iSCSI bus device driver 210 from FIG. 2 aremerged, and the virtual network driver 250 communicates directly withthe new iSCSI device driver 300. The choice of implementation may bedifferent for different operating systems, but the idea of a virtualnetwork driver using an intermediary device driver to communicate withthe network device remains the same.

FIG. 4 is a flow chart illustrating operations performed by abus-to-network device driver. Machine bus commands are encapsulatedaccording to at least one networking protocol at 400. The encapsulatedmachine bus commands are sent over a network at 410. An interface to anetwork driver is provided at 420. Communication information receivedfrom the network driver is sent over the network at 430. First andsecond return information received in response to the encapsulatedmachine bus commands and the communication information respectively aredistinguished at 440.

FIG. 5 is a flow chart illustrating various approaches to using abus-to-network device driver in a data processing machine, where variousoperations may be used separately or in combination. A bus-to-networkdevice driver may be received over a network at 500. For example, PXEmay be used to obtain the bus-to-network device driver. A bus-to-networkdevice driver is loaded during a machine boot at 510, such as describedabove. An OS may be installed to a storage target at 520. For example,the OS may be installed to the storage target before booting to thestorage target, such as by using PXE through the iSCSI device driver toput the OS on an iSCSI hard drive. A boot to an OS on the storage targetoccurs at 530. For example, the machine boot may be to an OS on theiSCSI hard drive, which may be an OS installed to the target at 520.

A network driver capable of communicating with the network through thebus-to-network device driver is loaded at 540. After the machine boot iscompleted, the bus-to-network device driver is engaged to perform blockstorage of data at 550. The network driver is engaged to direct generalpurpose network traffic over the network at 560. Moreover, the networkdriver may be disabled at 570. For example, the OS can turn off thenetwork connection without disconnecting the iSCSI drive.

Using the example systems of FIGS. 2 and 3, a data processing machinemay boot to a remote drive on an iSCSI target, and thus a machine mayboot up without using a local drive. The remote drive may be viewedwithin the machine as a local SCSI disk. Using the described driverarchitecture, the general network interface and the iSCSI interface of amachine may be shared. Thus, two different TCP/IP stacks may be used atthe same time for two different types of traffic through a sharednetwork device.

Command oriented bus/drive interfaces, such as SCSI, are generally verystateful, as compared with action oriented interfaces, such as the IDE(Integrated Drive Electronics) interface. Thus, loss of a networkconnection in a machine that uses a bus-to-network interface, such asiSCSI, can result in a system crash. Using a virtual network driver asdescribed allows a bus-to-network interface to maintain a networkconnection through a shared network device, while the networkconnectivity governed by the operating system may freely go up and down,providing valuable backward compatibility for existing operatingsystems. Moreover, in the case of a system where all storage access isthrough a network, the driver that controls the network device shouldremain up constantly while the storage target is in use, includingduring a handoff between the boot initiator and the operating systeminitiator, which the present systems and techniques enable.

FIG. 6 is a block diagram illustrating another system that providesnetwork storage target boot and network connectivity through a commonnetwork device. A system 600 includes a network 160 and a storage target170, such as in the system of FIG. 1. Additionally, the system 600includes a modular platform 610. The modular platform 610 includes amain circuit board 640 and at least one local system bus 620, which maybe part of the main circuit board 640.

The modular platform 610 includes multiple modular elements 630, eachmodular element 630 being removably coupled with the at least one localsystem bus 620. The modular elements 630 may have similar operationalinterfaces, yet provide different functions within the modular platform610. For example, the modular platform 610 may be modular communicationsplatform, such as a network server having interchangeable cards, whichmay be compliant with the ATCA (Advanced Telecom Computing Architecture)standard.

The modular elements 630 may each include a processor 632. For example,the modular elements 630 may be blade servers. Moreover, the processors632 may be uniprocessors or multiprocessors, and may also employ variousadvanced processor architecture features, such as super-pipeliningand/or hyperthreading.

The modular platform 610 includes a network device, such as a networkdevice integrated into the main circuit board 640, and the modularplatform 610 employs the bus-to-network driver architecture, asdescribed above. The network device in the modular platform 610 mayinclude first and second hardware addresses assignable to a devicedriver and a network driver respectively. In addition, one of theinformation sources available over the network 160 may be a dynamic hostconfiguration protocol (DHCP) server 650 available over a local areanetwork, and the DHCP server 650 may interact with the modular platform610 using the first and second hardware addresses.

FIG. 7 is a block diagram illustrating an example dynamic hostconfiguration protocol server implementation 700. The DHCP server 650includes a server scope 1 and a server scope 2. The first server scopemay include a single network address keyed to the first hardware address(e.g., MAC address 1) of the network device 110. The second server scopemay include a range of network addresses keyed to exclude the firsthardware address of the network device 110, thus allowing multiplenetwork addresses to be assigned to the second hardware address (e.g.,MAC address 2). The network addresses may be IP addresses, and the DHCPserver 650 may also assign iSCSI boot variables in the first scope andassign network variables in the second scope.

The logic flows depicted in FIGS. 4 and 5 do not require the particularorder shown. Not all the operations illustrated need to be performed toachieve desirable results. Moreover, performing the operations insequential order is not required.

Other embodiments may be within the scope of the following claims.

What is claimed is:
 1. A system comprising: at least one local systembus; modular elements, each modular element being removably coupled withthe at least one local system bus; a network device operationallycoupled with the at least one local system bus; a device driver thatoperates the network device and supports booting to a remote bootdevice; and a network driver that communicates with the network devicethrough the device driver, presents itself to an operating system as anetwork device driver that operates the network device, and supportsgeneral purpose network traffic.
 2. The system of claim 1, wherein eachof the modular elements comprises a processor.
 3. The system of claim 2,wherein each of the modular elements comprises a blade server comprisingthe processor.
 4. The system of claim 1, wherein the network deviceincludes first and second hardware addresses assignable to the devicedriver and the network driver respectively.